package cn.source.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.source.common.annotation.Excel;
import cn.source.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 日志信息对象 deyu_log_entry
 * 
 * @author deyucare.com
 * @date 2025-03-05
 */
public class DeyuLogEntry extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 日志文件id */
    @Excel(name = "日志文件id")
    @NotNull(message = "日志文件id不能为空")
    private Long logFileId;

    /** 日志时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "日志时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date logTime;

    /** 日志级别 */
    @Excel(name = "日志级别")
    private String logLevel;

    /** 日志消息 */
    @Excel(name = "日志消息")
    private String message;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLogFileId(Long logFileId) 
    {
        this.logFileId = logFileId;
    }

    public Long getLogFileId() 
    {
        return logFileId;
    }
    public void setLogTime(Date logTime) 
    {
        this.logTime = logTime;
    }

    public Date getLogTime() 
    {
        return logTime;
    }
    public void setLogLevel(String logLevel) 
    {
        this.logLevel = logLevel;
    }

    public String getLogLevel() 
    {
        return logLevel;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("logFileId", getLogFileId())
            .append("logTime", getLogTime())
            .append("logLevel", getLogLevel())
            .append("message", getMessage())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
